<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>栅格布局（Grid）</title>
    <style>
        .contatiner{
            height: 500px;
            border: 1px solid blue;
            /* 
            grid 采用网格布局
            inline-grid 设置为行内元素网
            */
            display: grid;
            /* 
            grid-template-columns 定义列宽
            grid-template-rows 定义行高
            */
            grid-template-columns: 100px 100px 100px;
            grid-template-rows: 100px 100px 100px;
        }
        .contatiner>div{
            border: 1px solid green;
        }
    </style>
</head>
<body>
    学习猿地
    <div class="contatiner">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
    </div>
    学习猿地
</body>
</html>